package cn.org.tpeach.nosql.service;

import cn.org.tpeach.nosql.bean.DicBean;
import cn.org.tpeach.nosql.redis.bean.RedisTreeItem;
import javafx.scene.Node;
import javafx.scene.control.Tab;
import javafx.scene.control.TextInputControl;
import javafx.scene.control.TreeItem;

/**
 * @author tyz
 * @Title: CommonService
 * @ProjectName Redis-Lettuce-Parent
 * @Description: TODO
 * @date 2020-06-04 12:40
 * @since 1.0.0
 */
public interface ICommonService {
    void renameKey(TreeItem<RedisTreeItem> selectedItem, RedisTreeItem value);

    boolean deleteKey(TreeItem<RedisTreeItem> selectedItem, RedisTreeItem value);

    String  getSelectDicText(TextInputControl textInputControl, DicBean dicBean, Node configNode);

    void editServer(TreeItem<RedisTreeItem> treeItem);

    void deleteServer(TreeItem<RedisTreeItem> treeItem);

    Tab openServerInfoTab(TreeItem<RedisTreeItem> serverTreeItem);

}
